package com.zjsru.payment.clients;

import com.zjsru.payment.fallback.ProductClientFallback;
import com.zjsru.payment.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "product-service", fallback = ProductClientFallback.class)
public interface ProductClient {
    @PostMapping("/product/updateCount")
    Result updateProductCount(@RequestParam("integer") Integer integer, @RequestParam("productId") Long productId);
}